import java.util.*;
public class ss{
        public static void main(String[] args){
        	int n=2;
       		int i=2;
        	boolean b=true;
        	System.out.println("请输入N");
        	Scanner sj = new Scanner(System.in);
        	int N = sj.nextInt();
        	for(n=2;n<=N;n++){    
		  b=true;
            	 for(i=2;i<n;i++){
           
           	 	if(n%i==0){
           		b=false;
                	break;
            		}
       	 	}
            if(b==true)
                System.out.println("N之内的素数有"+n);
        	}

        }

}
